package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    /**用户编号*/
    private int id;
    /**用户名*/
    private String userName;
    /**用户密码，默认为111*/
    private String psw = "111";
    /**真实姓名*/
    private String name;
    /**用户等级*/
    private String level;

    public UserBean() {
    }

    public UserBean(String userName, String name, String level) {
        this.userName = userName;
        this.name = name;
        this.level = level;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", psw='" + psw + '\'' +
                ", name='" + name + '\'' +
                ", level='" + level + '\'' +
                '}'+"\n";
    }
}
